﻿using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessDB
{
    [Serializable]
    public class ResItemDB : IEntity
    {
        public ObjectId Id { get; set; }
        public int TeamID { get; set; }
        public int ItemID { get; set; }
        public string ItemName { get; set; }
    }

    public class ResItemFactory
    {
        public IList<ResItemDB> Create()
        {
            return new List<ResItemDB>()
            {
                // 产品分类
                new ResItemDB() { TeamID = 1, ItemID = 1, ItemName =  "筒灯" },
                new ResItemDB() { TeamID = 1, ItemID = 2, ItemName =  "射灯" },
                new ResItemDB() { TeamID = 1, ItemID = 3, ItemName =  "壁灯" },
                new ResItemDB() { TeamID = 1, ItemID = 4, ItemName =  "装饰灯" },
                new ResItemDB() { TeamID = 1, ItemID = 5, ItemName =  "路灯" },
                new ResItemDB() { TeamID = 1, ItemID = 6, ItemName =  "草坪灯" },
                new ResItemDB() { TeamID = 1, ItemID = 7, ItemName =  "地埋灯" },
                new ResItemDB() { TeamID = 1, ItemID = 8, ItemName =  "投光灯" },
                new ResItemDB() { TeamID = 1, ItemID = 9, ItemName =  "灯盘" },
                new ResItemDB() { TeamID = 1, ItemID = 10, ItemName = "庭院灯" },

                // 使用场所
                new ResItemDB() { TeamID = 2, ItemID = 1, ItemName =  "室内" },
                new ResItemDB() { TeamID = 2, ItemID = 2, ItemName =  "室外" },

                // 产地
                new ResItemDB() { TeamID = 3, ItemID = 1, ItemName =  "国产" },
                new ResItemDB() { TeamID = 3, ItemID = 2, ItemName =  "进口" },

                // 防撞击等级
                new ResItemDB() { TeamID = 4, ItemID = 1, ItemName =  "IK00" },
                new ResItemDB() { TeamID = 4, ItemID = 2, ItemName =  "IK01" },
                new ResItemDB() { TeamID = 4, ItemID = 3, ItemName =  "IK02" },
                new ResItemDB() { TeamID = 4, ItemID = 4, ItemName =  "IK03" },
                new ResItemDB() { TeamID = 4, ItemID = 5, ItemName =  "IK04" },
                new ResItemDB() { TeamID = 4, ItemID = 6, ItemName =  "IK05" },
                new ResItemDB() { TeamID = 4, ItemID = 7, ItemName =  "IK06" },
                new ResItemDB() { TeamID = 4, ItemID = 8, ItemName =  "IK07" },
                new ResItemDB() { TeamID = 4, ItemID = 9, ItemName =  "IK08" },
                new ResItemDB() { TeamID = 4, ItemID = 10,ItemName =  "IK09" },
                new ResItemDB() { TeamID = 4, ItemID = 11,ItemName =  "IK10" },

                // 配光说明
                new ResItemDB() { TeamID = 5, ItemID = 1, ItemName =  "对称配光" },
                new ResItemDB() { TeamID = 5, ItemID = 2, ItemName =  "非对称配光" },

                // 工作电压
                new ResItemDB() { TeamID = 6, ItemID = 1, ItemName =  "AC220" },
                new ResItemDB() { TeamID = 6, ItemID = 2, ItemName =  "AC12" },
                new ResItemDB() { TeamID = 6, ItemID = 3, ItemName =  "DC12" },
                new ResItemDB() { TeamID = 6, ItemID = 4, ItemName =  "DC24" },
                new ResItemDB() { TeamID = 6, ItemID = 5, ItemName =  "其他" },

                // 控制方式
                new ResItemDB() { TeamID = 7, ItemID = 1, ItemName =  "DMX" },
                new ResItemDB() { TeamID = 7, ItemID = 2, ItemName =  "Dali" },
                new ResItemDB() { TeamID = 7, ItemID = 3, ItemName =  "其它" },

                // 光源种类
                new ResItemDB() { TeamID = 8, ItemID = 1, ItemName =  "卤素" },
                new ResItemDB() { TeamID = 8, ItemID = 2, ItemName =  "金卤" },
                new ResItemDB() { TeamID = 8, ItemID = 3, ItemName =  "钠" },
                new ResItemDB() { TeamID = 8, ItemID = 4, ItemName =  "荧光灯" },
                new ResItemDB() { TeamID = 8, ItemID = 5, ItemName =  "LED" },

                // 安装方式
                new ResItemDB() { TeamID = 9, ItemID = 1, ItemName =  "明装" },
                new ResItemDB() { TeamID = 9, ItemID = 2, ItemName =  "嵌装" },
                new ResItemDB() { TeamID = 9, ItemID = 3, ItemName =  "悬吊" },
                new ResItemDB() { TeamID = 9, ItemID = 4, ItemName =  "轨道" },
                new ResItemDB() { TeamID = 9, ItemID = 5, ItemName =  "立杆" },
                new ResItemDB() { TeamID = 9, ItemID = 6, ItemName =  "水下" }
            };
        }
    }
}
